/**
 * 响应数据类型
 */
export declare namespace RespDataType {
  /**
   * 验证码信息
   */
  interface ICaptchaImageInfo {
    img: string,
    uuid: string
  }

  /**
   * 用户信息
   */
  interface UserInfo {
    permissions: string[],
    roles: string[],
    user: {
      userId: number,
      userName: string,   // 用户名
      nickName: string,   // 昵称
      userType: string,
      amount: number,     // 算力点
      admin: boolean,
      email: string,
      phonenumber: string,
      sex: string,
      avatar: string,
      password: string,
      status: string,
      delFlag: string,
      loginIp: string,
      loginDate: string,
      createTime: string,
      updateTime: string,
    }
  }

  /**
   * 微信公众号信息
   */
  interface WechatLoginInfo {
    eventKey: string
    url: string
    expire_seconds: number
  }
}

/**
 * 请求数据类型
 */
export declare namespace RequestDataType {
  export interface LoginParams {
    username: string;
    password: string;
    // verifyCode?: string,
    // verifyKey?: string,
    uuid: string,
    code: string,
  }
}
